<script setup lang="ts">
import LayoutHeader from './components/LayoutHeader/index.vue'
import LayoutAside from './components/LayoutAside/index.vue'
import { useUserStore } from '../store/userStore'
import { storeToRefs } from 'pinia'

const userStore = useUserStore()
const { user } = storeToRefs(userStore)

</script>

<template>
  <div class="container">
    <el-container class="bodyer">
      <el-header>
        <LayoutHeader :userName="user.userName" />
      </el-header>
      <el-container>
        <el-aside width="200px" class="aside">
          <LayoutAside />
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bodyer {
  height: 100vh;
}



</style>